# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=parallel
pkgver=20231222
pkgrel=0
pkgdesc="Shell tool for executing jobs in parallel"
arch="noarch"
url="https://www.gnu.org/software/parallel"
license="GPL-3.0-or-later"
options="!check" # Test suite not part of src pkg
depends="perl"
subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion"
source="https://ftp.gnu.org/gnu/parallel/parallel-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
18d3dd5a7aab4cbf7f9ea8c5d8c8a2dd6b2bd5c9deb56daba85a3ff1c3b3ea84403913d7266b7ea04c0dec432d1288f98c911ac29120d775ee795c56cc31c0a2  parallel-20231222.tar.bz2
"
